package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 查询离职客户接替状态响应类
 * @author: liukunlong
 * @date: 2021-03-05 09:21
 */
public class ResignedTransferResultResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * customer : [{"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACCCC","status":1,"takeover_time":1588262400},{"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACBBBB","status":2,"takeover_time":1588482400},{"external_userid":"woAJ2GCAAAXtWyujaWJHDDGi0mACAAAA","status":3,"takeover_time":0}]
     * next_cursor : NEXT_CURSOR
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * customer
     */
    @JSONField(name = "customer")
    private List<CustomerDTO> customer;
    /**
     * nextCursor
     */
    @JSONField(name = "next_cursor")
    private String nextCursor;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<CustomerDTO> getCustomer() {
        return customer;
    }

    public void setCustomer(List<CustomerDTO> customer) {
        this.customer = customer;
    }

    public String getNextCursor() {
        return nextCursor;
    }

    public void setNextCursor(String nextCursor) {
        this.nextCursor = nextCursor;
    }

    public static class CustomerDTO {
        /**
         * externalUserid
         */ /**
         * external_userid : woAJ2GCAAAXtWyujaWJHDDGi0mACCCC
         * status : 1
         * takeover_time : 1588262400
         */

        @JSONField(name = "external_userid")
        private String externalUserid;
        /**
         * status
         */
        @JSONField(name = "status")
        private Integer status;
        /**
         * takeoverTime
         */
        @JSONField(name = "takeover_time")
        private Integer takeoverTime;

        public String getExternalUserid() {
            return externalUserid;
        }

        public void setExternalUserid(String externalUserid) {
            this.externalUserid = externalUserid;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getTakeoverTime() {
            return takeoverTime;
        }

        public void setTakeoverTime(Integer takeoverTime) {
            this.takeoverTime = takeoverTime;
        }
    }
}
